# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=syms2elf
pkgver=12.329c2ce
pkgrel=3
pkgdesc="A plugin for Hex-Ray's IDA Pro and radare2 to export the symbols recognized to the ELF symbol table."
groups=('blackarch' 'blackarch-reversing' 'blackarch-disassembler'
        'blackarch-binary')
arch=('any')
url='https://github.com/danigargu/syms2elf'
license=('GPL3')
depends=('python2')
makedepends=('git')
source=("git+https://github.com/danigargu/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/share/$pkgname/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

